package com.hk.service.sys;

import java.math.BigInteger;
import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.SqlFilter;
import com.hk.commons.entity.sys.SysResource;




public interface ISysResource {

	/** 根据id获实体 */
	public SysResource findById(Long id);

	/** 分页获取 */
	public List<SysResource> find(int pageNum, int pageSize);
	
	public Long add(SysResource model);

	/** 新增模块，如果模块已存在则更新 */
	public void update(SysResource model);

	public void saveOrUpdate(SysResource model);

	/** 删除 */
	public SysResource delete(Long id);
	
	public Long countByFilter(HqlFilter hqlFilter);
	
	public List<SysResource> findByFilter(HqlFilter hqlFilter);
	
	public List<SysResource> findByFilter(HqlFilter hqlFilter,int pageNum, int pageSize);
	
	public List<SysResource> findBySqlFilter(SqlFilter sqlFilter);

	public List<SysResource> findBySqlFilter(SqlFilter sqlFilter, int page, int rows) ;

	public BigInteger countBySqlFilter(SqlFilter sqlFilter) ;
}
